Added Metadata to ColumnInfo which can be accessible from IMapper#690
Added Metadata to ColumnInfo which can be accessible from IMapper#690dario-l wants to merge 1 commit intoschotime:masterfrom
Conversation
|
Hey, nice one. like it, however it's a breaking change. Ideally if we can find a way to make this non-breaking that would be great. I have some ideas, but would need to test them out. Happy for you to have a try though. We actually do the same thing but we wrap all encrypted fields in a class which can then easily be mapped conventionally. Has the benefit of knowing which fields are encrypted just by looking at them. |
Sorry for that. It's by habit. 😄
Right. Maybe overloaded methods on
You mean base class or just additional class which maps to special table (for encrypted data) in db? |
Hi @schotime, I would love some feedback on this!
We have builtin solution for encryption by our custom encryption mechanism. We want to map specific properties using FluentMappings but there is no possible to pass additional metadata to the IMapper.
With this update I added Metadata dictionary which can be populated in fluent mappings and can be passed to any IMapper instance.
I will be happy if you accept my pull-request. 😃